<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of GenericDAO
 *
 * @author Krix
 */

function ObtenerConexion(){
    $conn = mysql_connect("localhost", "root","");
    if(!$conn){
            die("Error en la conexion de BD: " . mysql_error());
    }
    if(!mysql_select_db("infoacudiente", $conn)){
            die("Error seleccionando la BD: " . mysql_error());
    }
    return $conn;
}
?>
